package com.dlc.shop.delivery.api.config;


import lombok.AllArgsConstructor;
import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 物流的swagger文档
 * @author LGH
 */
@Configuration("deliverySwaggerConfiguration")
@AllArgsConstructor
public class SwaggerConfiguration {

    @Bean
    public GroupedOpenApi deliveryRestApi() {
        return GroupedOpenApi.builder()
                .group("物流接口")
                .packagesToScan("com.dlc.shop.delivery.api.controller")
                .pathsToMatch("/**")
                .build();
    }


}
